class ResultData {
  int total;
  int pages;
  List<Data> data;
  int pageSize;
  int pageNum;

  ResultData({this.total, this.pages, this.data, this.pageSize, this.pageNum});

  ResultData.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    pages = json['pages'];
    if (json['data'] != null) {
      data = new List<Data>();
      json['data'].forEach((v) {
        data.add(new Data.fromJson(v));
      });
    } else {
      data = new List<Data>();
    }
    pageSize = json['pageSize'];
    pageNum = json['pageNum'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    data['pages'] = this.pages;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    data['pageSize'] = this.pageSize;
    data['pageNum'] = this.pageNum;
    return data;
  }
}

class Data {
  String createTime;
  String detail;
  String operator;
  String route;

  Data({this.createTime, this.detail, this.operator,this.route});

  Data.fromJson(Map<String, dynamic> json) {
    createTime = json['createTime'] ?? "";
    detail = json['detail'] ?? "";
    operator = json['operator'] ?? "";
    route = json["route"] ?? "";
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['createTime'] = this.createTime;
    data['detail'] = this.detail;
    data['operator'] = this.operator;
    data['route'] = this.route;
    return data;
  }
}